package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.entities;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FlowMultiInstanceTaskTraceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public FlowMultiInstanceTaskTraceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdIsNull() {
            addCriterion("process_instance_id is null");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdIsNotNull() {
            addCriterion("process_instance_id is not null");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdEqualTo(String value) {
            addCriterion("process_instance_id =", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdNotEqualTo(String value) {
            addCriterion("process_instance_id <>", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdGreaterThan(String value) {
            addCriterion("process_instance_id >", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdGreaterThanOrEqualTo(String value) {
            addCriterion("process_instance_id >=", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdLessThan(String value) {
            addCriterion("process_instance_id <", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdLessThanOrEqualTo(String value) {
            addCriterion("process_instance_id <=", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdLike(String value) {
            addCriterion("process_instance_id like", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdNotLike(String value) {
            addCriterion("process_instance_id not like", value, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdIn(List<String> values) {
            addCriterion("process_instance_id in", values, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdNotIn(List<String> values) {
            addCriterion("process_instance_id not in", values, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdBetween(String value1, String value2) {
            addCriterion("process_instance_id between", value1, value2, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessInstanceIdNotBetween(String value1, String value2) {
            addCriterion("process_instance_id not between", value1, value2, "processInstanceId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdIsNull() {
            addCriterion("process_definition_id is null");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdIsNotNull() {
            addCriterion("process_definition_id is not null");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdEqualTo(String value) {
            addCriterion("process_definition_id =", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdNotEqualTo(String value) {
            addCriterion("process_definition_id <>", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdGreaterThan(String value) {
            addCriterion("process_definition_id >", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdGreaterThanOrEqualTo(String value) {
            addCriterion("process_definition_id >=", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdLessThan(String value) {
            addCriterion("process_definition_id <", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdLessThanOrEqualTo(String value) {
            addCriterion("process_definition_id <=", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdLike(String value) {
            addCriterion("process_definition_id like", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdNotLike(String value) {
            addCriterion("process_definition_id not like", value, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdIn(List<String> values) {
            addCriterion("process_definition_id in", values, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdNotIn(List<String> values) {
            addCriterion("process_definition_id not in", values, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdBetween(String value1, String value2) {
            addCriterion("process_definition_id between", value1, value2, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andProcessDefinitionIdNotBetween(String value1, String value2) {
            addCriterion("process_definition_id not between", value1, value2, "processDefinitionId");
            return (Criteria) this;
        }

        public Criteria andActivityIdIsNull() {
            addCriterion("activity_id is null");
            return (Criteria) this;
        }

        public Criteria andActivityIdIsNotNull() {
            addCriterion("activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andActivityIdEqualTo(String value) {
            addCriterion("activity_id =", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotEqualTo(String value) {
            addCriterion("activity_id <>", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdGreaterThan(String value) {
            addCriterion("activity_id >", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdGreaterThanOrEqualTo(String value) {
            addCriterion("activity_id >=", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLessThan(String value) {
            addCriterion("activity_id <", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLessThanOrEqualTo(String value) {
            addCriterion("activity_id <=", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLike(String value) {
            addCriterion("activity_id like", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotLike(String value) {
            addCriterion("activity_id not like", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdIn(List<String> values) {
            addCriterion("activity_id in", values, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotIn(List<String> values) {
            addCriterion("activity_id not in", values, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdBetween(String value1, String value2) {
            addCriterion("activity_id between", value1, value2, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotBetween(String value1, String value2) {
            addCriterion("activity_id not between", value1, value2, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityNameIsNull() {
            addCriterion("activity_name is null");
            return (Criteria) this;
        }

        public Criteria andActivityNameIsNotNull() {
            addCriterion("activity_name is not null");
            return (Criteria) this;
        }

        public Criteria andActivityNameEqualTo(String value) {
            addCriterion("activity_name =", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameNotEqualTo(String value) {
            addCriterion("activity_name <>", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameGreaterThan(String value) {
            addCriterion("activity_name >", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameGreaterThanOrEqualTo(String value) {
            addCriterion("activity_name >=", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameLessThan(String value) {
            addCriterion("activity_name <", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameLessThanOrEqualTo(String value) {
            addCriterion("activity_name <=", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameLike(String value) {
            addCriterion("activity_name like", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameNotLike(String value) {
            addCriterion("activity_name not like", value, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameIn(List<String> values) {
            addCriterion("activity_name in", values, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameNotIn(List<String> values) {
            addCriterion("activity_name not in", values, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameBetween(String value1, String value2) {
            addCriterion("activity_name between", value1, value2, "activityName");
            return (Criteria) this;
        }

        public Criteria andActivityNameNotBetween(String value1, String value2) {
            addCriterion("activity_name not between", value1, value2, "activityName");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdIsNull() {
            addCriterion("root_execution_id is null");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdIsNotNull() {
            addCriterion("root_execution_id is not null");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdEqualTo(String value) {
            addCriterion("root_execution_id =", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdNotEqualTo(String value) {
            addCriterion("root_execution_id <>", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdGreaterThan(String value) {
            addCriterion("root_execution_id >", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdGreaterThanOrEqualTo(String value) {
            addCriterion("root_execution_id >=", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdLessThan(String value) {
            addCriterion("root_execution_id <", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdLessThanOrEqualTo(String value) {
            addCriterion("root_execution_id <=", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdLike(String value) {
            addCriterion("root_execution_id like", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdNotLike(String value) {
            addCriterion("root_execution_id not like", value, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdIn(List<String> values) {
            addCriterion("root_execution_id in", values, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdNotIn(List<String> values) {
            addCriterion("root_execution_id not in", values, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdBetween(String value1, String value2) {
            addCriterion("root_execution_id between", value1, value2, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andRootExecutionIdNotBetween(String value1, String value2) {
            addCriterion("root_execution_id not between", value1, value2, "rootExecutionId");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesIsNull() {
            addCriterion("num_of_pass_instances is null");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesIsNotNull() {
            addCriterion("num_of_pass_instances is not null");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesEqualTo(Integer value) {
            addCriterion("num_of_pass_instances =", value, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesNotEqualTo(Integer value) {
            addCriterion("num_of_pass_instances <>", value, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesGreaterThan(Integer value) {
            addCriterion("num_of_pass_instances >", value, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_of_pass_instances >=", value, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesLessThan(Integer value) {
            addCriterion("num_of_pass_instances <", value, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesLessThanOrEqualTo(Integer value) {
            addCriterion("num_of_pass_instances <=", value, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesIn(List<Integer> values) {
            addCriterion("num_of_pass_instances in", values, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesNotIn(List<Integer> values) {
            addCriterion("num_of_pass_instances not in", values, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesBetween(Integer value1, Integer value2) {
            addCriterion("num_of_pass_instances between", value1, value2, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfPassInstancesNotBetween(Integer value1, Integer value2) {
            addCriterion("num_of_pass_instances not between", value1, value2, "numOfPassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesIsNull() {
            addCriterion("num_of_unpass_instances is null");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesIsNotNull() {
            addCriterion("num_of_unpass_instances is not null");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesEqualTo(Integer value) {
            addCriterion("num_of_unpass_instances =", value, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesNotEqualTo(Integer value) {
            addCriterion("num_of_unpass_instances <>", value, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesGreaterThan(Integer value) {
            addCriterion("num_of_unpass_instances >", value, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_of_unpass_instances >=", value, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesLessThan(Integer value) {
            addCriterion("num_of_unpass_instances <", value, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesLessThanOrEqualTo(Integer value) {
            addCriterion("num_of_unpass_instances <=", value, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesIn(List<Integer> values) {
            addCriterion("num_of_unpass_instances in", values, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesNotIn(List<Integer> values) {
            addCriterion("num_of_unpass_instances not in", values, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesBetween(Integer value1, Integer value2) {
            addCriterion("num_of_unpass_instances between", value1, value2, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfUnpassInstancesNotBetween(Integer value1, Integer value2) {
            addCriterion("num_of_unpass_instances not between", value1, value2, "numOfUnpassInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesIsNull() {
            addCriterion("num_of_instances is null");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesIsNotNull() {
            addCriterion("num_of_instances is not null");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesEqualTo(Integer value) {
            addCriterion("num_of_instances =", value, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesNotEqualTo(Integer value) {
            addCriterion("num_of_instances <>", value, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesGreaterThan(Integer value) {
            addCriterion("num_of_instances >", value, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_of_instances >=", value, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesLessThan(Integer value) {
            addCriterion("num_of_instances <", value, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesLessThanOrEqualTo(Integer value) {
            addCriterion("num_of_instances <=", value, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesIn(List<Integer> values) {
            addCriterion("num_of_instances in", values, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesNotIn(List<Integer> values) {
            addCriterion("num_of_instances not in", values, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesBetween(Integer value1, Integer value2) {
            addCriterion("num_of_instances between", value1, value2, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfInstancesNotBetween(Integer value1, Integer value2) {
            addCriterion("num_of_instances not between", value1, value2, "numOfInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesIsNull() {
            addCriterion("num_of_active_instances is null");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesIsNotNull() {
            addCriterion("num_of_active_instances is not null");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesEqualTo(Integer value) {
            addCriterion("num_of_active_instances =", value, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesNotEqualTo(Integer value) {
            addCriterion("num_of_active_instances <>", value, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesGreaterThan(Integer value) {
            addCriterion("num_of_active_instances >", value, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_of_active_instances >=", value, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesLessThan(Integer value) {
            addCriterion("num_of_active_instances <", value, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesLessThanOrEqualTo(Integer value) {
            addCriterion("num_of_active_instances <=", value, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesIn(List<Integer> values) {
            addCriterion("num_of_active_instances in", values, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesNotIn(List<Integer> values) {
            addCriterion("num_of_active_instances not in", values, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesBetween(Integer value1, Integer value2) {
            addCriterion("num_of_active_instances between", value1, value2, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfActiveInstancesNotBetween(Integer value1, Integer value2) {
            addCriterion("num_of_active_instances not between", value1, value2, "numOfActiveInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesIsNull() {
            addCriterion("num_of_completed_instances is null");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesIsNotNull() {
            addCriterion("num_of_completed_instances is not null");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesEqualTo(Integer value) {
            addCriterion("num_of_completed_instances =", value, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesNotEqualTo(Integer value) {
            addCriterion("num_of_completed_instances <>", value, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesGreaterThan(Integer value) {
            addCriterion("num_of_completed_instances >", value, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_of_completed_instances >=", value, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesLessThan(Integer value) {
            addCriterion("num_of_completed_instances <", value, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesLessThanOrEqualTo(Integer value) {
            addCriterion("num_of_completed_instances <=", value, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesIn(List<Integer> values) {
            addCriterion("num_of_completed_instances in", values, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesNotIn(List<Integer> values) {
            addCriterion("num_of_completed_instances not in", values, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesBetween(Integer value1, Integer value2) {
            addCriterion("num_of_completed_instances between", value1, value2, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfCompletedInstancesNotBetween(Integer value1, Integer value2) {
            addCriterion("num_of_completed_instances not between", value1, value2, "numOfCompletedInstances");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerIsNull() {
            addCriterion("num_of_handler is null");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerIsNotNull() {
            addCriterion("num_of_handler is not null");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerEqualTo(Integer value) {
            addCriterion("num_of_handler =", value, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerNotEqualTo(Integer value) {
            addCriterion("num_of_handler <>", value, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerGreaterThan(Integer value) {
            addCriterion("num_of_handler >", value, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_of_handler >=", value, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerLessThan(Integer value) {
            addCriterion("num_of_handler <", value, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerLessThanOrEqualTo(Integer value) {
            addCriterion("num_of_handler <=", value, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerIn(List<Integer> values) {
            addCriterion("num_of_handler in", values, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerNotIn(List<Integer> values) {
            addCriterion("num_of_handler not in", values, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerBetween(Integer value1, Integer value2) {
            addCriterion("num_of_handler between", value1, value2, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andNumOfHandlerNotBetween(Integer value1, Integer value2) {
            addCriterion("num_of_handler not between", value1, value2, "numOfHandler");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("`status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("`status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("`status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("`status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("`status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("`status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("`status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("`status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("`status` like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("`status` not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("`status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("`status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("`status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("`status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andLinkStatusIsNull() {
            addCriterion("link_status is null");
            return (Criteria) this;
        }

        public Criteria andLinkStatusIsNotNull() {
            addCriterion("link_status is not null");
            return (Criteria) this;
        }

        public Criteria andLinkStatusEqualTo(String value) {
            addCriterion("link_status =", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusNotEqualTo(String value) {
            addCriterion("link_status <>", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusGreaterThan(String value) {
            addCriterion("link_status >", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusGreaterThanOrEqualTo(String value) {
            addCriterion("link_status >=", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusLessThan(String value) {
            addCriterion("link_status <", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusLessThanOrEqualTo(String value) {
            addCriterion("link_status <=", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusLike(String value) {
            addCriterion("link_status like", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusNotLike(String value) {
            addCriterion("link_status not like", value, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusIn(List<String> values) {
            addCriterion("link_status in", values, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusNotIn(List<String> values) {
            addCriterion("link_status not in", values, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusBetween(String value1, String value2) {
            addCriterion("link_status between", value1, value2, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andLinkStatusNotBetween(String value1, String value2) {
            addCriterion("link_status not between", value1, value2, "linkStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}